@echo off
set disk=%1
set days=%2
if %disk%=="" ( goto usage )
if "%days%"=="" ( goto usage )
rem echo in NTReco; disk:%disk% days:%days%

set tmp=%disk%
set disk=
:next
if defined tmp (
set "disk=%tmp:~0,1% %disk% "
set tmp=%tmp:~1%
goto next
)
rem echo %disk%

for %%i in (%disk%) do if exist %%i: (
.\Debug\timegen -tln -d %days% \\.\%%i: 1>>..\res.csv 2>>..\.log
)

set disk=

goto end
:usage
echo usage : make.bat ^<disk^> ^<days^>
:end

